/**
 * jims
 */
package com.jims.master.modules.sys.entity;

import org.hibernate.validator.constraints.Length;
import com.fasterxml.jackson.annotation.JsonBackReference;

import com.jims.master.common.persistence.DataEntity;

/**
 * Entity
 * @author 系统管理员
 * @version 2018-03-22
 */
public class OrgDict extends DataEntity<OrgDict> {
	
	private static final long serialVersionUID = 1L;
	private String value;		// 数据值
	private String orgId;		// 机构ID
	private String label;		// 标签名
	private String type;		// 类型
	private String description;		// 描述
	private String inputCode;		// 拼音码
	private String sort;		// 排序（升序）
	private OrgDict parent;		// 父级编号
	private String address;		// 医院地址
	private String picUrl;		// 图片

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public OrgDict() {
		super();
	}

	public OrgDict(String id){
		super(id);
	}

	@Length(min=1, max=100, message="数据值长度必须介于 1 和 100 之间")
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	@Length(min=1, max=100, message="机构ID长度必须介于 1 和 100 之间")
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	
	@Length(min=1, max=100, message="标签名长度必须介于 1 和 100 之间")
	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}
	
	@Length(min=1, max=100, message="类型长度必须介于 1 和 100 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=1, max=100, message="描述长度必须介于 1 和 100 之间")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	@Length(min=0, max=100, message="拼音码长度必须介于 0 和 100 之间")
	public String getInputCode() {
		return inputCode;
	}

	public void setInputCode(String inputCode) {
		this.inputCode = inputCode;
	}
	
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}
	
	@JsonBackReference
	public OrgDict getParent() {
		return parent;
	}

	public void setParent(OrgDict parent) {
		this.parent = parent;
	}
	
}